<%@page import="java.io.OutputStream"%><%@page import="java.io.FileInputStream"%><%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%><%
		response.setContentType("text/html;charset=utf-8");
		response.setCharacterEncoding("utf-8");
		String path = application.getRealPath("/hello.JPG");
		String filename = path.substring(path.lastIndexOf("\\"));
		response.setHeader("content-disposition", "attachment;filename" + filename);
		FileInputStream in = new FileInputStream(path);
		int len = 0;
		byte buffer[] = new byte[1024];
		OutputStream sout = response.getOutputStream();
		while ((len = in.read(buffer)) > 0) {
			sout.write(buffer, 0, len);
		}
	%>